﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSL
{
    public class PSLEvent
    {
        #region Delegates and Events
        /// <summary>
        /// Delegate
        /// </summary>
        public delegate dynamic OnPSLCall(string FunctionName, PSLParameter Parameter);

        public event OnPSLCall OnPSLCallEventHandler;
        #endregion

        #region Private Member

        #endregion

        #region Constrcutor
        /// <summary>
        /// Construcotr
        /// </summary>
        public PSLEvent()
        {
            
        }
        #endregion

        #region Public Methods
        /// <summary>
        /// Call Event
        /// </summary>
        public dynamic Call(string FunctionName, PSLParameter Parameter)
        {
            if (OnPSLCallEventHandler != null)
            {
                return OnPSLCallEventHandler(FunctionName, Parameter);
            }

            return "";
        }
        #endregion

        #region Public Member
        
        #endregion
    }
}